﻿using System;

class MyMath
{
    // 加法
    public double Add(double a, double b) => a + b;

    // 减法
    public double Subtract(double a, double b) => a - b;

    // 乘法
    public double Multiply(double a, double b) => a * b;

    // 除法（处理除数为0的情况）
    public double Divide(double a, double b)
    {
        if (b == 0)
        {
            throw new ArgumentException("除数不能为0");
        }
        return a / b;
    }
}

// 测试类
class Program
{
    static void Main(string[] args)
    {
        MyMath math = new MyMath();
        Console.WriteLine($"2 + 3 = {math.Add(2, 3)}");
        Console.WriteLine($"5 - 1 = {math.Subtract(5, 1)}");
        Console.WriteLine($"4 × 6 = {math.Multiply(4, 6)}");
        Console.WriteLine($"10 ÷ 2 = {math.Divide(10, 2)}");
    }
}